<?php
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=RKPD_akhir.xls");//ganti nama sesuai keperluan
header("Pragma: no-cache");
header("Expires: 0");
//disini script laporan anda
?>
<?php
include_once('laporan.php');
?>
<?php $laporan = new laporan(); 

	//	$laporan -> tahun();
	echo "<h3 align=center>Rencana Kerja Pemerintah Daerah $thn <br>Kota Samarinda</h3>";
?><table cellpadding="0" cellspacing="0" border="1" class="table table-striped table-bordered geo-table">
	<thead>
		<tr>
			<th rowspan="2" style="text-align:center; vertical-align:middle;">No.</td>
			<th rowspan="2" style="text-align:center; vertical-align:middle;">Prioritas</td>
			<th rowspan="2" style="text-align:center; vertical-align:middle;">Program Kegiatan</td>
			<th style="text-align:center;">Indikator Program</td>
			<th colspan="4" style="text-align:center;">Indikator Kegiatan</td>
			<th rowspan="2" style="text-align:center; vertical-align:middle;">Organisasi</td>
			<th colspan="4" style="text-align:center;">Pagu Indikatif</td>
			<th rowspan="2" style="text-align:center; vertical-align:middle;">Lokasi</td>
		</tr>
		<tr>
			<th style="text-align:center;">Hasil</th>
			<th style="text-align:center;">Keluaran</th>
			<th style="text-align:center;">Target</th>
			<th style="text-align:center;">Hasil</th>
			<th style="text-align:center;">Target</th>
			<th style="text-align:center;">APBD KAB</th>
			<th style="text-align:center;">APBD PROV</th>
			<th style="text-align:center;">APBN</th>
			<th style="text-align:center;">Total</th>
		</tr>
	</thead>
	<tbody id="tbody-laporan">
	<?php
		$laporan -> view_data();
	?>
	</tbody>
</table>
